home *** CD-ROM | disk | FTP | other *** search
- Path: peer-news.britain.eu.net!strath-cs!st-and!pasta!anb
- From: Andrew <anb@st-andrews.ac.uk>
- Newsgroups: comp.lang.c
- Subject: How can I sync my game to 25 fps?
- Date: Sun, 4 Feb 1996 15:37:16 +0000
- Organization: St. Andrews University
- Message-ID: <Pine.SUN.3.91.960204152753.10685C-100000@pasta>
- NNTP-Posting-Host: pasta.st-and.ac.uk
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- NNTP-Posting-User: anb
- X-Sender: anb@pasta
-
- I want a routine that will make my game run at 25fps even on a machine
- that could run it at 90fps. Therefore I need a way to read the internal
- clock at the start of the frame. Then, when I have finished all the
- processing for that frame the computer must wait until 1/25th of a second
- has elapsed since that start of the frame?
-
- This routine must be independent of processor speed. I am sure this is
- really quite easy if you have some idea how to program - unfortunately I
- don't.
-
- A free copy of my game to anyone with the correct answer. It's a 2 player
- arcade shoot 'em up.
-
- Thanks,
-
- Andrew Bainbridge.
-